package com.huiyi.ai.server.demo.controller;

import com.huiyi.ai.core.response.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hello")
public class HelloController {

    @GetMapping("world")
    public Object helloworld(){
        return "hello robin keep 1231213123";
    }

    @GetMapping("world2")
    public R<String> helloworld2(){
        return R.data("hello robin keep 1231213123");
    }

}